<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;

class AdminUserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $nowDate = date('Y-m-d H:m:s', time());
        $sql = "insert into users values (?,?,?,?,?,?,?,?)";
        DB::insert($sql, [1, "demodeom", '15627804802', password_hash("w15627804802.", PASSWORD_DEFAULT), 1, $nowDate,$nowDate, null]);
        DB::insert($sql, [2, "测试账号", '13838383838', password_hash("w13838383838.", PASSWORD_DEFAULT), 1, $nowDate,$nowDate, null]);
    }
}
